package xxy.com.yangproject.model;

import android.util.Log;

import androidx.lifecycle.MutableLiveData;

import com.blankj.utilcode.util.LogUtils;
import com.blankj.utilcode.util.ToastUtils;

public class TestMultiData<T> extends MutableLiveData<T> {
    public TestMultiData(T value) {
        super(value);
    }

    public TestMultiData() {
        super();
    }

    @Override
    public void setValue(T value) {
        try {
            super.setValue(value);
        }catch (Exception e){
            LogUtils.e("log info", e.getMessage() == null? "e.getMessage 为null" : e.getMessage());           //打印错误信息
            ToastUtils.showLong(e.getMessage());
        }
    }
}
